time = getPizza {
    setSize "large"
    setCrust "thin"
    setTopping "olives"
}
println time


def getPizza(closure) {
    PizzaShop shop = new PizzaShop()
    closure.delegate = shop
    closure()
}

class PizzaShop {
    def size,crust,topping,address,card
}